package adv5;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class FatherDay2 {

	public static void main(String[] args) {
		// 有问题
		Scanner input = new Scanner(System.in);
		System.out.println("请输入年份：");
		int a = input.nextInt();
		SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-EEE-F");
		String str = a + "-06-Sun-3";
		System.out.println(str);
		try {
			Date d = s.parse(str);
			System.out.println(d);
		} catch (ParseException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
